/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.jm.financeiro.entity;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 *
 * @author joao
 */
@Entity
@Table(name = "color_movimento", catalog = "salao", schema = "public")
public class ColorMovimento implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "color_movimento_id_color_movimento_seq")
    @SequenceGenerator(name = "color_movimento_id_color_movimento_seq", sequenceName = "color_movimento_id_color_movimento_seq", initialValue = 1, allocationSize = 1)
    @Column(name = "id_color")
    @JoinColumn(name = "id_color",
    referencedColumnName = "id_color",
    nullable = false,
    insertable = true,
    updatable = false)
    private Integer idColor;
    @Column(name = "colorloc", length = 50)
    private String colorloc;
    @Column(name = "colorproc", length = 50)
    private String colorproc;
    @Column(name = "colorsit", length = 50)
    private String colorsit;
    @Column(name = "colorcom", length = 50)
    private String colorcom;
    @Column(name = "colorass", length = 50)
    private String colorass;

    public ColorMovimento() {
    }

    public ColorMovimento(Integer idColor) {
        this.idColor = idColor;
    }

    public Integer getIdColor() {
        return idColor;
    }

    public void setIdColor(Integer idColor) {
        this.idColor = idColor;
    }

    public String getColorloc() {
        return colorloc;
    }

    public void setColorloc(String colorloc) {
        this.colorloc = colorloc;
    }

    public String getColorproc() {
        return colorproc;
    }

    public void setColorproc(String colorproc) {
        this.colorproc = colorproc;
    }

    public String getColorsit() {
        return colorsit;
    }

    public void setColorsit(String colorsit) {
        this.colorsit = colorsit;
    }

    public String getColorcom() {
        return colorcom;
    }

    public void setColorcom(String colorcom) {
        this.colorcom = colorcom;
    }

    public String getColorass() {
        return colorass;
    }

    public void setColorass(String colorass) {
        this.colorass = colorass;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idColor != null ? idColor.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof ColorMovimento)) {
            return false;
        }
        ColorMovimento other = (ColorMovimento) object;
        if ((this.idColor == null && other.idColor != null) || (this.idColor != null && !this.idColor.equals(other.idColor))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "br.jm.financeiro.entity.ColorMovimento[idColor=" + idColor + "]";
    }
}
